﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

using System.Reflection;

namespace Quix
{
    public class Reflection
    {
        public static void DuplicateObject(object Source, object Target, Type SourceType, Type TargetType)
        {
            foreach (PropertyInfo prop in SourceType.GetProperties())
            {
                if (prop.Name == "ID")
                { }
                else
                    prop.SetValue(Target, prop.GetValue(Source, null), null);
            }
        }
    }
}
